#ifndef TCL_MSTAR_ATV_TV_H
#define TCL_MSTAR_ATV_TV_H
#include"tcl_tv.h"
#include<QMessageBox>

class TCL_MSTAR_ATV_TV : public TCL_TV
{
    friend class TCL_USB;
    friend class MainWindow;
     friend class translate;
public:
    TCL_MSTAR_ATV_TV();
    ~TCL_MSTAR_ATV_TV();
 /*   TCL_MSTAR_ATV_TV(QString &name,char ch_val=1,short freq=0,
                     uint audio_id=0,uint vedio_id=0):
                    TCL_TV(name),ui2_ch_val(ch_val),ui2_freq(freq),
                    ui4_audio_id(audio_id),ui4_vedio_id(vedio_id){}
*/

private:
     ushort ui2_ch_val;
     ushort ui2_class;
     uint ui4_freq;
     ushort ui2_isfav;
     ushort ui2_isskip;


public:
        int Read_Data(QDataStream&);
        int Write_Data(QDataStream &);
        void Set_Data(int order,QVariant);
        int Set_Data(QString &tv_class,QString &,QString &fav,QString &skip,QString &ch_val,QString &name);
        void Get_Data(QString &tv_class,QString &,QString &fav,QString &skip,QString &ch_val,QString &name);

        void Set_Data(QList<QString>&);
        void Get_Data(QList<QString>* atv_data);

        int Count_Item();
        QString Get_Item(int i);
};

#endif // TCL_MSTAR_ATV_TV_H
